Package com.fsf.news.actor.processor
Class NewsSourcesProcessorActorTest
java.lang.Object
com.fsf.news.actor.processor.NewsSourcesProcessorActorTest
@ExtendWith({org.mockito.junit.jupiter.MockitoExtension.class,org.apache.pekko.actor.testkit.typed.javadsl.TestKitJUnit5Extension.class})
class NewsSourcesProcessorActorTest
extends Object
Unit tests for the NewsSourcesProcessorActor class.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) com.fsf.news.client.NewsApiClient(package private) com.fasterxml.jackson.databind.JsonNode(package private) com.fsf.news.processor.NewsResponseProcessor(package private) org.apache.pekko.actor.testkit.typed.javadsl.ActorTestKit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidTests that an AddSource request message is handled appropriately on successful execution.(package private) voidTests that an AddSource request message is handled appropriately on failed execution.
-
Field Details
-
testKit
@JUnit5TestKit org.apache.pekko.actor.testkit.typed.javadsl.ActorTestKit testKit -
client
@Mock com.fsf.news.client.NewsApiClient client -
processor
@Mock com.fsf.news.processor.NewsResponseProcessor processor -
node
@Mock com.fasterxml.jackson.databind.JsonNode node
-
-
Constructor Details
-
NewsSourcesProcessorActorTest
NewsSourcesProcessorActorTest()
-
-
Method Details
-
testProcessRequestMessageNewsSourcesAddSourceComplete
@Test void testProcessRequestMessageNewsSourcesAddSourceComplete()Tests that an AddSource request message is handled appropriately on successful execution. -
testProcessRequestMessageNewsSourcesAddSourceFailed
@Test void testProcessRequestMessageNewsSourcesAddSourceFailed()Tests that an AddSource request message is handled appropriately on failed execution.
-